import java.util.*;

public class Hello {

	public static void main(String[] args) {
		int a = 100;
		int br = 0;
		
		String s = Integer.toBinaryString(a);
		System.out.println(s);
		
		for (int i = 0; i < s.length(); i++){
			if ((s.charAt(i)) == '1'){
				br++;
			}
		}    
		System.out.println(br);
		
	}

}
